import request from '@/utils/request'
// 栏目列表
export function categoryFindList(parmas) {
  return request({
    url: '/cms/category/findList',
    method: 'get',
		parmas
  })
}
// 栏目新增
export function categoryAdd(data) {
  return request({
    url: '/cms/category/add',
    method: 'post',
		data
  })
}
// 栏目删除
export function categoryRemove(categoryId) {
  return request({
    url: '/cms/category/remove?categoryId=' + categoryId,
    method: 'get',
  })
}
// 栏目详情
export function categoryFindDetail(categoryId) {
  return request({
    url: '/cms/category/findDetail?categoryId=' + categoryId,
    method: 'get'
  })
}
// 栏目详情
export function categoryTreeNew(categoryId) {
  return request({
    url: '/cms/category/selectCategoryTreeNew/' + categoryId,
    method: 'get'
  })
}

export function categoryEdit(data) {
  return request({
    url: '/cms/category/edit',
    method: 'post',
	data
  })
}